//
//  JDOrderListTableViewCell.swift
//  DragonWallet
//
//  Created by volantPig on 2024/4/14.
//

import UIKit
/// 未使用
class JDOrderListTableViewCell: UITableViewCell {

    var containerView: UIView?
    var topLine: UIView?
    var cellTitle: UILabel?
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.contentView.backgroundColor = color("#F5F6F8")
        self.setupUIElements()
    }
    
    func setupUIElements() {
        
        self.containerView = UIView()
        self.contentView.addSubview(self.containerView!)
        self.containerView?.snp.makeConstraints({ make in
            make.left.equalTo(self.contentView).offset(12)
            make.right.equalTo(self.contentView).offset(-12)
            make.top.equalTo(self.contentView).offset(10)
            make.bottom.equalTo(self.contentView)
        })
        self.containerView?.backgroundColor = .white
        
        return;
        self.topLine = UIView()
        self.containerView?.addSubview(self.topLine!)
        self.topLine?.snp.makeConstraints({ make in
            make.left.equalTo(self.containerView!).offset(12)
            make.right.equalTo(self.containerView!).offset(-12)
            make.top.equalTo(self.containerView!).offset(52)
            make.height.equalTo(1)
        })
        self.topLine?.backgroundColor = color("#F5F6F8")
        
        self.cellTitle = UILabel()
        self.containerView?.addSubview(self.cellTitle!)
        self.cellTitle?.snp.makeConstraints({ make in
            make.left.equalTo(self.containerView!).offset(12)
            make.top.equalTo(self.containerView!)
            make.bottom.equalTo(self.topLine!)
        })
        self.cellTitle?.labelConfig(textAlignment: .left, font: UIFont.systemFont(ofSize: 16, weight: .semibold), textColor: color("#333333"))
        self.cellTitle?.text = ""
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
